package io.github.wslxm.springbootplus2.core.base.model;

import io.github.wslxm.springbootplus2.core.base.annotation.XjSecret;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


/**
 * 分页对象
 *
 * @author wangsong
 * @date 2023/03/24
 */
@Data
public class BasePage<T> implements Serializable {

    @XjSecret(isNext = true)
    @Schema(description = "列表数据")
    private List<T> records;
    @Schema(description = "当前页")
    private long current;
    @Schema(description = "每页条数")
    private long size;
    @Schema(description = "总条数")
    private long total;
    @Schema(description = "总页数")
    private long pages;
//    @Schema(description = "-", position = -5)
//    private List<OrderItem> orders;
//    @Schema(description = "-", position = -5)
//    private boolean optimizeCountSql;
//    @Schema(description = "-", position = -5)
//    private boolean searchCount;
//    @Schema(description = "-", position = -5)
//    private boolean optimizeJoinOfCountSql;
//    @Schema(description = "-", position = -5)
//    private Long maxLimit;
//    @Schema(description = "-", position = -5)
//    private String countId;
}
